/**
 * Created by IntelliJ IDEA.
 * User: ljy
 * Date: 2021/6/18
 * Time: 15:04
 */
package com.cowcode.biz.impl;

import com.cowcode.biz.UserBiz;
import com.cowcode.dao.UserDao;
import com.cowcode.entity.User;
import com.cowcode.util.Util;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserBizImpl implements UserBiz {

    @Resource
    private UserDao userDao;

    @Override
    public User loginByAcc(User user) {
        return userDao.loginByAcc(user);
    }

    @Override
    public User loginByPhone(User user) {
        return userDao.loginByPhone(user);
    }

    @Override
    public User loginByEmail(User user) {
        return userDao.loginByEmail(user);
    }

    @Override
    public boolean signup(User user) {
        return userDao.signup(user);
    }

    @Override
    public String checkacc(String acc) {
        return userDao.checkacc(acc);
    }

    @Override
    public String checkphone(String phone) {
        return userDao.checkphone(phone);
    }

    @Override
    public String checkemail(String email) {
        return userDao.checkemail(email);
    }

    @Override
    public User loginByFast(User user) {
        return userDao.loginByFast(user);
    }
    @Override
    public int queryId(String uacc){
        return userDao.queryId(uacc);
    }
}
